import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/channels'
  },
  // 请求下拉菜单组件
  {
    path: '/channels',
    name: 'Channels',
    component: () => import('@/components/Channels.vue')
  },
  // 计数器
  {
    path: '/TextCount',
    component: () => import('@/components/TextCount.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
